package com.ruoyi.cpsp.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("approval_record")
public class ApprovalRecord {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer applyPersonId;

    private String applyPersonName;

    private Integer detailId;

    private String applyPersonDeptId;

    private String applyPersonDept;

    private String violationPersonName;

    private Integer operateType;

    private String employeeIdCard;

    private Integer regulationTypeId;

    private Integer regulationDetailId;

    private Integer state;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getApplyPersonId() {
        return applyPersonId;
    }

    public void setApplyPersonId(Integer applyPersonId) {
        this.applyPersonId = applyPersonId;
    }

    public String getApplyPersonName() {
        return applyPersonName;
    }

    public void setApplyPersonName(String applyPersonName) {
        this.applyPersonName = applyPersonName;
    }

    public Integer getDetailId() {
        return detailId;
    }

    public void setDetailId(Integer detailId) {
        this.detailId = detailId;
    }

    public String getApplyPersonDeptId() {
        return applyPersonDeptId;
    }

    public void setApplyPersonDeptId(String applyPersonDeptId) {
        this.applyPersonDeptId = applyPersonDeptId;
    }

    public String getApplyPersonDept() {
        return applyPersonDept;
    }

    public void setApplyPersonDept(String applyPersonDept) {
        this.applyPersonDept = applyPersonDept;
    }

    public String getViolationPersonName() {
        return violationPersonName;
    }

    public void setViolationPersonName(String violationPersonName) {
        this.violationPersonName = violationPersonName;
    }

    public Integer getOperateType() {
        return operateType;
    }

    public void setOperateType(Integer operateType) {
        this.operateType = operateType;
    }

    public String getEmployeeIdCard() {
        return employeeIdCard;
    }

    public void setEmployeeIdCard(String employeeIdCard) {
        this.employeeIdCard = employeeIdCard;
    }

    public Integer getRegulationTypeId() {
        return regulationTypeId;
    }

    public void setRegulationTypeId(Integer regulationTypeId) {
        this.regulationTypeId = regulationTypeId;
    }

    public Integer getRegulationDetailId() {
        return regulationDetailId;
    }

    public void setRegulationDetailId(Integer regulationDetailId) {
        this.regulationDetailId = regulationDetailId;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }


    //字段插入自动填充
    @TableField(fill = FieldFill.INSERT)
    //转换返回的时间格式
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
}
